﻿<%@ Page AutoEventWireup="true" CodeBehind="Admin_Help.aspx.cs" Inherits="V5_EShop.Admin.Help.Admin_Help"
    Language="C#" MasterPageFile="~/Includes/AdminMaster.Master" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="title">
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="content">
    <table align="center" border="0" cellpadding="0" cellspacing="0" class="tablelist"
        width="100%">
        <tr>
            <td class="header">
                位置导航：<a class="list_link" href="<%=this.ResolveUrl("~/") %>Admin/Admin_Index_Main.aspx"
                    target="main">首页</a> >> 帮助中心管理
            </td>
        </tr>
        <tr>
            <td align="left">
                <a href="?">管理帮助</a> | <a href="?Action=edit">添加帮助</a>
            </td>
        </tr>
    </table>
    <asp:MultiView ID="MultiViewList" runat="server">
        <asp:View ID="View1" runat="server">
            <table border="0" cellpadding="0" cellspacing="0" class="tablelist">
                <tr>
                    <td>
                        操作:
                        <asp:DropDownList ID="ddlOpList" runat="server">
                            <asp:ListItem Text="请选择" Value="0" />
                            <asp:ListItem Text="选中删除" Value="del" />
                        </asp:DropDownList>
                        <asp:Button ID="btnOpSave" runat="server" Text="确定" />
                    </td>
                </tr>
            </table>
            <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                CssClass="tablelist overlist rowlist tableheader" OnRowCommand="gvList_RowCommand">
                <HeaderStyle CssClass="headertext" />
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <HeaderTemplate>
                            <input name="chkall" type="checkbox" id="chkall" onclick="javascript:SelectAll(this);"
                                value="checkbox" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkitem" runat="server" />
                        </ItemTemplate>
                        <ItemStyle Width="30px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="ID" HeaderText="ID">
                        <ItemStyle Width="30px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Title" HeaderText="标题" />
                    <asp:TemplateField HeaderText="类别">
                        <ItemTemplate>
                            <%#Eval("ClassTitle") %>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="100px" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="AddDateTime" HeaderText="添加时间">
                        <ItemStyle Width="150px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("ID") %>'
                                CommandName="go">修改</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#Eval("ID") %>'
                                CommandName="del">删除</asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle Width="150px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <table border="0" cellpadding="0" cellspacing="0" class="tablelist">
                <tr>
                    <td>
                        <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                            FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                            OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                            PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                            TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table cellpadding="5" cellspacing="1" class="tablelist rowlist">
                <tr>
                    <td colspan="2" class="header">
                        <asp:Label ID="lblTitle" runat="server" Text="添加帮助"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        标题
                    </td>
                    <td>
                        <asp:TextBox ID="txtHelpTitle" runat="server" Width="346px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        类别
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlClassID" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        内容
                    </td>
                    <td>
                        <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine"></asp:TextBox>
                        <script type="text/javascript">
        			        //<![CDATA[
                            CKEDITOR.replace('<%= this.txtContent.ClientID %>',
					        {
					            skin: 'v2',
					            height: 350,
					            resize_enabled: false
					        });
        			        //]]>
                        </script>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:HiddenField ID="hfID" runat="server" Value="0" />
                        <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="添加保存" CssClass="ds-btn ds-btn-ok" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
